{% extends "base.html" %}
{# Copyright The IETF Trust 2016, All Rights Reserved #}
{% load origin %}
{% load django_bootstrap5 %}
{% block title %}RFC Editor Note for {{ doc }}{% endblock %}
{% block content %}
    {% origin %}
    <h1 class="mb-3">
        RFC Editor Note
        <br>
        <small class="text-body-secondary">{{ doc }}</small>
    </h1>
    {% bootstrap_messages %}
    <form method="post">
        {% csrf_token %}
        <!-- [html-validate-disable-block input-missing-label -- FIXME: django_bootstrap5 seems to render ballot_rfceditornote_form w/o for= on the label - why? ] -->
        {% bootstrap_form ballot_rfceditornote_form %}
        <div class="form-text mb-3">
            RFC Editor Note. This text will be appended to all announcements and messages to the RFC Editor.
        </div>
        <button type="submit"
                class="btn btn-primary"
                name="save_ballot_rfceditornote"
                value="Save Ballot RFC Editor Note">
            Save
        </button>
        <button type="submit"
                class="btn btn-warning"
                name="clear_ballot_rfceditornote"
                value="Clear Ballot RFC Editor Note">
            Clear
        </button>
        <a class="btn btn-secondary float-end"
           href="{% url "ietf.doc.views_doc.document_main" name=doc.name %}">
            Back
        </a>
    </form>
{% endblock %}